<template>
  <div>
    <myHeader />
    <router-view></router-view>
    <myFooter v-show="this.$route.meta.true"/>
  </div>
</template>

<script>
import myHeader from './components/header/index.vue';
import myFooter from './components/footer/index.vue';

export default {
  name: "app",
  components: { myHeader, myFooter },
  mounted() {
    // 优化TypeNav中的categoryList请求
    this.$store.dispatch('categoryList')
  }
}
</script>

<style>

</style>